﻿/**************************************************
* 版权所有:Copyright (C) 
* 作    者:蔡海翔
* 创建日期:2014/6/19 9:46:34
* 描    述:进货单明细
* 修改日期:
* 修改内容:
****************************************************/

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataEntity
{
    [Table("OffPurchaseBillDetail")]
     public  class OffPurchaseBillDetail
    {
        [Key]
        public int ID { get; set; }
        [Display(Name = "入货单编号")]
        public int OffPurchaseBillID { get; set; }

        [Display(Name = "物品主键")]
        public int OffGoodsID { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        [Display(Name = "数量")]
        public int Quantity { get; set; }

        [Display(Name = "税后单价")]
        public decimal AfterTaxPrice { get; set; }

        [Display(Name = "单价")]
        public decimal Price { get; set; }

        [Display(Name = "备注")]

        public string Remark { get; set; }
        [ForeignKey("OffPurchaseBillID")]
        public virtual OffPurchaseBill OffPurchaseBill { get; set; }

        [ForeignKey("OffGoodsID")]
        public virtual OffGoods  OffGoods { get; set; }
    }
}
